package com.heima.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 策略表
 * </p>
 *
 * @author author
 * @since 2024-06-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_policy")
public class TbPolicy implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 策略id
     */
    @TableId(value = "policy_id", type = IdType.AUTO)
    private Integer policyId;

    /**
     * 策略名称
     */
    private String policyName;

    /**
     * 折扣，如：80代表8折
     */
    private Integer discount;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;


}
